package com.wind.weblog.web.controller;

import com.wind.weblog.common.Response;
import com.wind.weblog.common.aspect.ApiOperationLog;
import com.wind.weblog.web.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: wind-blog-admin
 * @BelongsPackage: com.wind.weblog.web.controller
 * @Author: shanzhengfei
 * @CreateTime: 2024-11-13  09:54
 * @Description: TODO
 * @Version: 1.0
 */

@RestController
@RequestMapping("/statistics")
public class StatisticsController {

    @Autowired
    private StatisticsService statisticsService;

    @PostMapping("/info")
    @ApiOperationLog(description = "前台获取统计信息")
    public Response findInfo() {
        return statisticsService.findInfo();
    }

}
